// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.*;
import com.fowo.api.sys.entity.SysFile;
import com.fowo.api.sys.rd2.annotation.RoleData2;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * FBAInventory
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "fba_inventory", autoResultMap = true)
@Schema(title = "FBA库存")
@RoleData2(groupId = 3, funcKey = "FBAInventory")
public class FBAInventory implements Serializable {

  /**
   * 店铺id
   */
  @TableField(value = "`sid`")
  @Schema(title = "店铺id")
  private Long sid;

  /**
   * listing主键
   */
  @TableField(value = "`listing_id`")
  @Schema(title = "listing主键")
  private Long listingId;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 仓库
   */
  @TableField(value = "`warehouse`")
  @JoinField(Warehouse.class)
  @Schema(title = "仓库")
  private Long warehouse;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 图片
   */
  @TableField(value = "`picture`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "图片")
  private List<SysFile> picture;

  /**
   * ASIN
   */
  @TableField(value = "`asin`")
  @Schema(title = "ASIN")
  private String asin;

  /**
   * MSKU
   */
  @TableField(value = "`msku`")
  @Schema(title = "MSKU")
  private String msku;

  /**
   * FNSKU
   */
  @TableField(value = "`fnsku`")
  @Schema(title = "FNSKU")
  private String fnsku;

  /**
   * 品名
   */
  @TableField(value = "`product_id`")
  @JoinField(Product.class)
  @Schema(title = "品名")
  private Long productId;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * 负责人
   */
  @TableField(value = "`head`", typeHandler = JacksonTypeHandler.class)
  @JoinField(SysUser.class)
  @Schema(title = "负责人")
  private List<Long> head;

  /**
   * 总库存
   */
  @TableField(value = "`total_inventory`")
  @Schema(title = "总库存")
  private Integer totalInventory;

  /**
   * 可用库存
   */
  @TableField(value = "`available_stock`")
  @Schema(title = "可用库存")
  private Integer availableStock;

  /**
   * FBA可售
   */
  @TableField(value = "`fba_available_for_sale`")
  @Schema(title = "FBA可售")
  private Integer fbaAvailableForSale;

  /**
   * FBM可售
   */
  @TableField(value = "`fbm_available_for_sale`")
  @Schema(title = "FBM可售")
  private Integer fbmAvailableForSale;

  /**
   * 待调仓
   */
  @TableField(value = "`warehouse_to_be_adjusted`")
  @Schema(title = "待调仓")
  private Integer warehouseToBeAdjusted;

  /**
   * 调仓中
   */
  @TableField(value = "`during_warehouse_adjustment`")
  @Schema(title = "调仓中")
  private Integer duringWarehouseAdjustment;

  /**
   * 待发货
   */
  @TableField(value = "`to_be_shipped`")
  @Schema(title = "待发货")
  private Integer toBeShipped;

  /**
   * 计划入库
   */
  @TableField(value = "`planned_warehousing`")
  @Schema(title = "计划入库")
  private Integer plannedWarehousing;

  /**
   * 标发在途
   */
  @TableField(value = "`standard_in_transit`")
  @Schema(title = "标发在途")
  private Integer standardInTransit;

  /**
   * 实际在途
   */
  @TableField(value = "`actual_in_transit`")
  @Schema(title = "实际在途")
  private Integer actualInTransit;

  /**
   * 入库中
   */
  @TableField(value = "`in_storage`")
  @Schema(title = "入库中")
  private Integer inStorage;

  /**
   * 不可售
   */
  @TableField(value = "`not_available_for_sale`")
  @Schema(title = "不可售")
  private Integer notAvailableForSale;

  /**
   * 调查中
   */
  @TableField(value = "`under_investigation`")
  @Schema(title = "调查中")
  private Integer underInvestigation;

  /**
   * 预警状态 (1 - 是; 0 - 否·; )
   */
  @TableField(value = "`warning_status`")
  @Schema(title = "预警状态")
  private String warningStatus;

  /**
   * 0-30天库龄
   */
  @TableField(value = "`day30`")
  @Schema(title = "0-30天库龄")
  private Integer day30;

  /**
   * 31-60天库龄
   */
  @TableField(value = "`day60`")
  @Schema(title = "31-60天库龄")
  private Integer day60;

  /**
   * 61-90天库龄
   */
  @TableField(value = "`day90`")
  @Schema(title = "61-90天库龄")
  private Integer day90;

  /**
   * 91-180天库龄
   */
  @TableField(value = "`day180`")
  @Schema(title = "91-180天库龄")
  private Integer day180;

  /**
   * 181-270天库龄
   */
  @TableField(value = "`day270`")
  @Schema(title = "181-270天库龄")
  private Integer day270;

  /**
   * 271-365天库龄
   */
  @TableField(value = "`day365`")
  @Schema(title = "271-365天库龄")
  private Integer day365;

  /**
   * 365天以上库龄
   */
  @TableField(value = "`day366`")
  @Schema(title = "365天以上库龄")
  private Integer day366;

  /**
   * 仓库名称
   */
  @TableField(value = "`wname`")
  @Schema(title = "仓库名称")
  private String wname;

  /**
   * 配送类型
   */
  @TableField(value = "`fulfillment_channel_type`")
  @Schema(title = "配送类型")
  private String fulfillmentChannelType;
}
